import fs from 'node:fs';
import { fromMarkdown } from 'mdast-util-from-markdown';

const doc = fs.readFileSync('example.md');

const tree = fromMarkdown(doc);

console.log(tree);
